<template>
  <!-- <a-descriptions title="基本信息" bordered :column="{ xxl: 2, xl: 2, lg: 2, md: 2, sm: 2, xs: 1 }">
    <a-descriptions-item label="患者姓名">
      {{ report.basicInfo.patientsName }}
    </a-descriptions-item>
    <a-descriptions-item label="性别">
      {{ report.basicInfo.patientsSex }}
    </a-descriptions-item>
    <a-descriptions-item label="年龄">
      {{ report.basicInfo.patientAge }}
    </a-descriptions-item>
    <a-descriptions-item label="手机号码">
      {{ report.basicInfo.patientsMobile }}
    </a-descriptions-item>
    <a-descriptions-item label="身高">
      {{ report.basicInfo.height }}
    </a-descriptions-item>
    <a-descriptions-item label="体重">
      {{ report.basicInfo.weight }}
    </a-descriptions-item>
    <a-descriptions-item label="BMI">
      {{ report.basicInfo.bmi }}
    </a-descriptions-item>
    <a-descriptions-item label=""> </a-descriptions-item>
    <a-descriptions-item label="简要病史" :span="1">
      {{ report.basicInfo.patientDesc }}
    </a-descriptions-item>
  </a-descriptions> -->
  <div class="container">
    <div style="border-bottom:1px solid #ccc;padding-bottom:50px">
      <div class="card_title">
        <img src="~@/assets/report/first/jibenxinxi.png" />
        <span>基本信息</span>
      </div>
      <div class="card_content">
        <a-row>
          <a-col :span="5">
            <div class="form_item">
              <span class="card_label">患者姓名:</span>
              <span class="card_value">{{ report.basicInfo.patientsName }}</span>
            </div>
            <div class="form_item">
              <span class="card_label">年龄:</span>
              <span class="card_value">{{ report.basicInfo.patientAge }}</span>
            </div>
            <div class="form_item">
              <span class="card_label">身高:</span>
              <span class="card_value">{{ report.basicInfo.height }}</span>
            </div>
            <div class="form_item">
              <span class="card_label">BMI:</span>
              <span class="card_value">{{ report.basicInfo.bmi }}</span>
            </div>
          </a-col>
          <a-col :span="8" style="margin-right:10px">
            <div class="form_item">
              <span class="card_label">性别:</span>
              <span class="card_value">{{ report.basicInfo.patientsSex }}</span>
            </div>
            <div class="form_item">
              <span class="card_label">手机号码:</span>
              <span class="card_value">{{ report.basicInfo.patientsMobile }}</span>
            </div>
            <div class="form_item">
              <span class="card_label">体重:</span>
              <span class="card_value">{{ report.basicInfo.weight }}</span>
            </div>
            <a-row class="form_item">
              <a-col :span="8" class="card_label" style="margin-right:0">简要病史:</a-col>
              <a-col :span="16" class="card_value" style="line-height:18px;margin-top: 15px;">{{
                report.basicInfo.patientDesc
              }}</a-col>
            </a-row>
          </a-col>
          <a-col :span="10">
            <div>
              <span class="card_label form_item">体型照片:</span>
              <div class="card_img" v-if="report.basicInfo.patientBodyImage">
                <img
                  :src="item"
                  :preview="1"
                  v-for="item in report.basicInfo.patientBodyImage.split(',')"
                  :key="item"
                />
              </div>
            </div>
          </a-col>
        </a-row>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'BasicInfo',
  props: ['report'],
  data() {
    return {}
  },
  methods: {}
}
</script>

<style lang="less" scoped>
.container {
  padding: 40px 24px 0 24px;
}
.card_title {
  display: flex;
  align-items: center;
  img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
  }
  span {
    font-size: 20px;
    font-weight: bold;
    color: #000;
  }
}
.card_img {
  display: flex;
  margin-top: 20px;
  img {
    width: 103.5px;
    height: 224px;
    margin-right: 10px;
  }
}
.card_content {
  margin-top: 15px;
}
.form_item {
  line-height: 50px;
}
.card_label {
  margin-right: 10px;
  color: #000;
}
.card_value {
  color: rgba(0, 0, 0, 0.55);
}
</style>

